<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title><ui:insert name="title">Login</ui:insert></title>
</h:head>

<h:body>
	<h:form>
		<a4j:outputPanel ajaxRendered="true">
			<div align="right"><h:panelGrid columns="1" width="25%">
				<rich:panel>
					<f:facet name="header">
						<h:outputText value="Please Login"></h:outputText>
					</f:facet>
					<h:panelGrid columns="2">
						<h:outputText value="Username"></h:outputText>
						<h:inputText value="#{loginbean.username}"></h:inputText>
						<h:outputText value="Password"></h:outputText>
						<h:inputText value="#{loginbean.password}"></h:inputText>
					</h:panelGrid>
					<h:panelGrid columns="1">
						<div align="right"><h:commandButton value="Sign in"
							action="#{loginbean.doLogin}" /></div>
					</h:panelGrid>
				</rich:panel>
			</h:panelGrid></div>
		</a4j:outputPanel>
	</h:form>
</h:body>

</html>
